package com.itheima.reggie.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * 菜品口味
 * @author GRS
 * @since 2024/4/25 下午12:54
 */
@AllArgsConstructor
@Data
@NoArgsConstructor
public class DishFlavor implements Serializable
{
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId
    private Long id;

    // 菜品ID
    private Long dishId;

    // 口味名称
    private String name;

    // 口味数据list
    private String value;

    @TableField(fill = FieldFill.INSERT)
    private String createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

    private Integer isDeleted;
}